package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.queryObject.StrategyCommentQueryObject;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCommentService {
    void save(StrategyComment strategyComment, UserInfo userInfo);
    void update(StrategyComment strategyComment);
    void delete(String id);
    StrategyComment get(String id);
    List<StrategyComment> list();
    Page<StrategyComment> query(StrategyCommentQueryObject qo);

    /**
     * 用户点赞评论方法
     * @param cid   要点赞的评论的id
     * @param userInfo  现登录的用户
     */
    void commentThumb(String cid, UserInfo userInfo);
}
